package com.example.springbootpay.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class PaymentConfig {
    @Value("${payment.alipay.appId}")
    private String alipayAppId;

    @Value("${payment.wechatpay.appId}")
    private String wechatpayAppId;

    @Value("${payment.flashpay.merchantId}")
    private String flashpayMerchantId;

    // Getters and Setters
    public String getAlipayAppId() {
        return alipayAppId;
    }

    public void setAlipayAppId(String alipayAppId) {
        this.alipayAppId = alipayAppId;
    }

    public String getWechatpayAppId() {
        return wechatpayAppId;
    }

    public void setWechatpayAppId(String wechatpayAppId) {
        this.wechatpayAppId = wechatpayAppId;
    }

    public String getFlashpayMerchantId() {
        return flashpayMerchantId;
    }

    public void setFlashpayMerchantId(String flashpayMerchantId) {
        this.flashpayMerchantId = flashpayMerchantId;
    }
}